.class public Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;
.super Ljava/lang/Object;
.source "ImageFileGridViewWrapper.java"

# interfaces
.implements Lcom/estrongs/android/view/FeaturedGridViewWrapper$b;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/view/ImageFileGridViewWrapper;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x4
    name = "c"
.end annotation


# instance fields
.field a:Ljava/lang/Runnable;

.field private b:Les/mg$n;

.field final synthetic c:Lcom/estrongs/android/view/ImageFileGridViewWrapper;


# direct methods
.method protected constructor <init>(Lcom/estrongs/android/view/ImageFileGridViewWrapper;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;->c:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance p1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c$a;

    invoke-direct {p1, p0}, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c$a;-><init>(Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;)V

    iput-object p1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;->a:Ljava/lang/Runnable;

    .line 3
    new-instance p1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c$b;

    invoke-direct {p1, p0}, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c$b;-><init>(Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;)V

    iput-object p1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;->b:Les/mg$n;

    return-void
.end method


# virtual methods
.method public a()Landroid/view/View;
    .locals 1

    const/4 v0, 0x0

    return-object v0
.end method

.method public bridge synthetic a(Landroid/view/View;)Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;
    .locals 0

    .line 1
    invoke-virtual {p0, p1}, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;->a(Landroid/view/View;)Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;

    move-result-object p1

    return-object p1
.end method

.method public a(Landroid/view/View;)Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;
    .locals 3

    .line 2
    new-instance v0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;

    invoke-direct {v0, p1}, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;-><init>(Landroid/view/View;)V

    const v1, 0x7f0907bc

    .line 3
    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, v0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;->c:Landroid/widget/TextView;

    const v1, 0x7f090d74

    .line 4
    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, v0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;->b:Landroid/widget/ImageView;

    const v1, 0x7f090207

    .line 5
    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/CheckBox;

    iput-object v1, v0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;->d:Landroid/widget/CheckBox;

    const/4 v2, 0x0

    .line 6
    invoke-virtual {v1, v2}, Landroid/widget/CheckBox;->setClickable(Z)V

    .line 7
    iget-object v1, v0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;->d:Landroid/widget/CheckBox;

    invoke-virtual {v1, v2}, Landroid/widget/CheckBox;->setChecked(Z)V

    .line 8
    iput-object p1, v0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;->a:Landroid/view/View;

    const v1, 0x7f090d2c

    .line 9
    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 10
    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, v0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;->i:Landroid/widget/ImageView;

    :cond_0
    return-object v0
.end method

.method public a(Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;I)V
    .locals 12

    .line 11
    iget-object v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;->c:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    invoke-virtual {v0, p2}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->e(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/fs/g;

    if-nez v0, :cond_0

    return-void

    .line 12
    :cond_0
    move-object v1, p1

    check-cast v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;

    .line 13
    iget v2, v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;->g:I

    const/4 v3, 0x4

    const/4 v4, 0x1

    const/4 v5, 0x0

    if-ne v2, v3, :cond_1

    const/4 v2, 0x1

    goto :goto_0

    :cond_1
    const/4 v2, 0x0

    :goto_0
    const/16 v6, 0x8

    if-nez v2, :cond_9

    .line 14
    iget-object v2, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;->c:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    invoke-static {v2}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->a(Lcom/estrongs/android/view/ImageFileGridViewWrapper;)I

    move-result v2

    if-nez v2, :cond_2

    .line 15
    iget-object v2, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;->c:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    invoke-static {v2, v5}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->a(Lcom/estrongs/android/view/ImageFileGridViewWrapper;Z)V

    .line 16
    :cond_2
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "mGridFolderColumnCount = "

    invoke-virtual {v2, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v7, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;->c:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    invoke-static {v7}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->b(Lcom/estrongs/android/view/ImageFileGridViewWrapper;)I

    move-result v7

    invoke-virtual {v2, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;)V

    .line 17
    invoke-interface {v0}, Lcom/estrongs/fs/g;->i()Lcom/estrongs/fs/l;

    move-result-object v2

    invoke-virtual {v2}, Lcom/estrongs/fs/l;->b()Z

    move-result v2

    if-eqz v2, :cond_7

    .line 18
    iget-object v2, p1, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;->c:Landroid/widget/TextView;

    invoke-virtual {v2, v5}, Landroid/widget/TextView;->setVisibility(I)V

    .line 19
    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    iget-object v7, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;->c:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    .line 20
    invoke-static {v7}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->c(Lcom/estrongs/android/view/ImageFileGridViewWrapper;)I

    move-result v7

    const/4 v8, -0x2

    invoke-direct {v2, v7, v8}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    .line 21
    iget-object v7, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    invoke-virtual {v7}, Landroid/view/View;->getResources()Landroid/content/res/Resources;

    move-result-object v7

    const v8, 0x7f0700d0

    invoke-virtual {v7, v8}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v7

    .line 22
    iget-object v8, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    invoke-virtual {v8}, Landroid/view/View;->getResources()Landroid/content/res/Resources;

    move-result-object v8

    const v9, 0x7f070109

    invoke-virtual {v8, v9}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v8

    .line 23
    iget-object v9, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;->c:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    invoke-static {v9}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->b(Lcom/estrongs/android/view/ImageFileGridViewWrapper;)I

    move-result v9

    rem-int v9, p2, v9

    if-nez v9, :cond_3

    const/4 v9, 0x1

    goto :goto_1

    :cond_3
    const/4 v9, 0x0

    :goto_1
    add-int/lit8 v10, p2, 0x1

    .line 24
    iget-object v11, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;->c:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    invoke-static {v11}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->b(Lcom/estrongs/android/view/ImageFileGridViewWrapper;)I

    move-result v11

    rem-int/2addr v10, v11

    if-nez v10, :cond_4

    const/4 v10, 0x1

    goto :goto_2

    :cond_4
    const/4 v10, 0x0

    .line 25
    :goto_2
    iget-object v11, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    if-eqz v9, :cond_5

    move v9, v7

    goto :goto_3

    :cond_5
    move v9, v8

    :goto_3
    if-eqz v10, :cond_6

    move v10, v7

    goto :goto_4

    :cond_6
    move v10, v8

    :goto_4
    invoke-virtual {v11, v9, v8, v10, v8}, Landroid/view/View;->setPadding(IIII)V

    .line 26
    iget-object v9, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    invoke-virtual {v9, v2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 27
    iget v2, v2, Landroid/widget/RelativeLayout$LayoutParams;->width:I

    sub-int/2addr v2, v7

    sub-int/2addr v2, v8

    .line 28
    new-instance v7, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v7, v2, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    .line 29
    iget-object v2, p1, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;->b:Landroid/widget/ImageView;

    invoke-virtual {v2, v7}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_6

    .line 30
    :cond_7
    invoke-static {}, Les/rj;->d()Z

    move-result v2

    xor-int/2addr v2, v4

    .line 31
    iget-object v7, p1, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;->c:Landroid/widget/TextView;

    if-eqz v2, :cond_8

    const/4 v2, 0x0

    goto :goto_5

    :cond_8
    const/16 v2, 0x8

    :goto_5
    invoke-virtual {v7, v2}, Landroid/widget/TextView;->setVisibility(I)V

    .line 32
    iget-object v2, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;->c:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    invoke-static {v2}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->d(Lcom/estrongs/android/view/ImageFileGridViewWrapper;)I

    move-result v2

    iget-object v7, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;->c:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    invoke-static {v7}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->e(Lcom/estrongs/android/view/ImageFileGridViewWrapper;)I

    move-result v7

    mul-int/lit8 v7, v7, 0x2

    sub-int/2addr v2, v7

    .line 33
    new-instance v7, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v7, v2, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    .line 34
    iget-object v2, p1, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;->b:Landroid/widget/ImageView;

    invoke-virtual {v2, v7}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    :cond_9
    :goto_6
    const-string v2, "item_count"

    .line 35
    invoke-interface {v0, v2}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v2

    if-eqz v2, :cond_a

    .line 36
    iget-object v7, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;->c:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    invoke-virtual {v7}, Lcom/estrongs/android/view/FileGridViewWrapper;->Y()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Lcom/estrongs/android/util/h0;->j2(Ljava/lang/String;)Z

    move-result v7

    if-nez v7, :cond_a

    .line 37
    iget-object v7, p1, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;->c:Landroid/widget/TextView;

    iget-object v8, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;->c:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    invoke-interface {v0}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9, v2}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->a(Ljava/lang/String;Ljava/lang/Object;)Landroid/text/SpannableString;

    move-result-object v2

    invoke-virtual {v7, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 38
    iget-object v2, p1, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;->c:Landroid/widget/TextView;

    const-string v7, "MIDDLE"

    invoke-static {v7}, Landroid/text/TextUtils$TruncateAt;->valueOf(Ljava/lang/String;)Landroid/text/TextUtils$TruncateAt;

    move-result-object v7

    invoke-virtual {v2, v7}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V

    goto :goto_7

    .line 39
    :cond_a
    iget-object v2, p1, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;->c:Landroid/widget/TextView;

    invoke-interface {v0}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v2, v7}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 40
    iget-object v2, p1, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;->c:Landroid/widget/TextView;

    const-string v7, "END"

    invoke-static {v7}, Landroid/text/TextUtils$TruncateAt;->valueOf(Ljava/lang/String;)Landroid/text/TextUtils$TruncateAt;

    move-result-object v7

    invoke-virtual {v2, v7}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V

    :goto_7
    const v2, 0x7f0803da

    .line 41
    iget-object v7, p1, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;->d:Landroid/widget/CheckBox;

    .line 42
    iget-object v8, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;->c:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    invoke-virtual {v8}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->E()Z

    move-result v8

    if-eqz v8, :cond_c

    .line 43
    invoke-virtual {v7, v5}, Landroid/widget/CheckBox;->setVisibility(I)V

    .line 44
    iget-object v3, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;->c:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    invoke-virtual {v3, p2}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->g(I)Z

    move-result p2

    if-eqz p2, :cond_b

    .line 45
    invoke-virtual {v7, v4}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto :goto_8

    .line 46
    :cond_b
    invoke-virtual {v7, v5}, Landroid/widget/CheckBox;->setChecked(Z)V

    .line 47
    iget-object p2, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;->c:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    invoke-virtual {p2}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->w()Ljava/util/Map;

    move-result-object p2

    invoke-interface {p2, v0}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    .line 48
    :goto_8
    iget-object p2, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;->c:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    invoke-virtual {p2}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->L0()Z

    move-result p2

    if-eqz p2, :cond_d

    iget-object p2, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;->c:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    invoke-virtual {p2}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->M0()Z

    move-result p2

    if-nez p2, :cond_d

    .line 49
    iget-object p2, p1, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;->c:Landroid/widget/TextView;

    invoke-virtual {p2, v5}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_9

    .line 50
    :cond_c
    invoke-virtual {v7, v3}, Landroid/widget/CheckBox;->setVisibility(I)V

    .line 51
    iget-object p2, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;->c:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    invoke-virtual {p2}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->L0()Z

    move-result p2

    if-eqz p2, :cond_d

    iget-object p2, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;->c:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    invoke-virtual {p2}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->M0()Z

    move-result p2

    if-nez p2, :cond_d

    .line 52
    iget-object p2, p1, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;->c:Landroid/widget/TextView;

    invoke-virtual {p2, v3}, Landroid/widget/TextView;->setVisibility(I)V

    .line 53
    :cond_d
    :goto_9
    invoke-interface {v0}, Lcom/estrongs/fs/g;->i()Lcom/estrongs/fs/l;

    move-result-object p2

    invoke-virtual {p2}, Lcom/estrongs/fs/l;->b()Z

    move-result p2

    if-eqz p2, :cond_13

    .line 54
    iget-object p2, v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;->i:Landroid/widget/ImageView;

    if-eqz p2, :cond_13

    .line 55
    invoke-interface {v0}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object p2

    invoke-static {p2}, Lcom/estrongs/android/util/h0;->c2(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_12

    .line 56
    invoke-interface {v0}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object p2

    invoke-static {p2}, Lcom/estrongs/android/util/h0;->o1(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_e

    .line 57
    iget-object p2, v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;->i:Landroid/widget/ImageView;

    const v3, 0x7f080567

    invoke-virtual {p2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 58
    iget-object p2, v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;->i:Landroid/widget/ImageView;

    invoke-virtual {p2, v5}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_a

    .line 59
    :cond_e
    invoke-interface {v0}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object p2

    invoke-static {p2}, Lcom/estrongs/android/util/h0;->t1(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_f

    .line 60
    iget-object p2, v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;->i:Landroid/widget/ImageView;

    const v3, 0x7f080582

    invoke-virtual {p2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 61
    iget-object p2, v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;->i:Landroid/widget/ImageView;

    invoke-virtual {p2, v5}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_a

    .line 62
    :cond_f
    invoke-interface {v0}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object p2

    invoke-static {p2}, Lcom/estrongs/android/util/h0;->h1(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_10

    .line 63
    iget-object p2, v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;->i:Landroid/widget/ImageView;

    const v3, 0x7f080566

    invoke-virtual {p2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 64
    iget-object p2, v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;->i:Landroid/widget/ImageView;

    invoke-virtual {p2, v5}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_a

    .line 65
    :cond_10
    invoke-interface {v0}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object p2

    invoke-static {p2}, Lcom/estrongs/android/util/h0;->h2(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_13

    .line 66
    invoke-interface {v0}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object p2

    invoke-static {p2}, Lcom/estrongs/android/util/h0;->P0(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_11

    .line 67
    invoke-interface {v0}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object p1

    iget-object p2, v1, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;->b:Landroid/widget/ImageView;

    invoke-static {p1, p2, v0, v2, v4}, Lcom/estrongs/android/icon/loader/c;->a(Ljava/lang/String;Landroid/widget/ImageView;Lcom/estrongs/fs/g;IZ)V

    .line 68
    iget-object p1, v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;->i:Landroid/widget/ImageView;

    invoke-virtual {p1, v6}, Landroid/widget/ImageView;->setVisibility(I)V

    return-void

    .line 69
    :cond_11
    iget-object p2, v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;->i:Landroid/widget/ImageView;

    const v3, 0x7f08059d

    invoke-virtual {p2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 70
    iget-object p2, v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;->i:Landroid/widget/ImageView;

    invoke-virtual {p2, v5}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_a

    .line 71
    :cond_12
    iget-object p2, v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;->i:Landroid/widget/ImageView;

    invoke-virtual {p2, v6}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 72
    :cond_13
    :goto_a
    iget-object p2, p1, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;->b:Landroid/widget/ImageView;

    invoke-virtual {p2, v0}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    .line 73
    invoke-static {v0, v4}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->a(Lcom/estrongs/fs/g;Z)Lcom/estrongs/fs/g;

    move-result-object p2

    .line 74
    iget-object v1, p1, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;->b:Landroid/widget/ImageView;

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    if-eqz p2, :cond_14

    .line 75
    invoke-interface {v0}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v1

    iget-object v3, p1, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;->b:Landroid/widget/ImageView;

    invoke-static {v1, v3, p2, v2, v4}, Lcom/estrongs/android/icon/loader/c;->a(Ljava/lang/String;Landroid/widget/ImageView;Lcom/estrongs/fs/g;IZ)V

    goto :goto_b

    .line 76
    :cond_14
    invoke-interface {v0}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object p2

    iget-object v1, p1, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;->b:Landroid/widget/ImageView;

    invoke-static {p2, v1, v0, v2, v4}, Lcom/estrongs/android/icon/loader/c;->a(Ljava/lang/String;Landroid/widget/ImageView;Lcom/estrongs/fs/g;IZ)V

    .line 77
    :goto_b
    invoke-static {}, Les/mg;->f()Les/mg;

    move-result-object p2

    invoke-virtual {p2, v0}, Les/mg;->c(Lcom/estrongs/fs/g;)Z

    move-result p2

    if-eqz p2, :cond_15

    .line 78
    invoke-static {}, Les/mg;->f()Les/mg;

    move-result-object p2

    invoke-virtual {p2, v0}, Les/mg;->b(Lcom/estrongs/fs/g;)Lcom/estrongs/fs/g;

    move-result-object p2

    .line 79
    invoke-static {}, Les/mg;->f()Les/mg;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;->c:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    iget-object v1, v1, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    iget-object v2, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;->b:Les/mg$n;

    invoke-virtual {v0, v1, p2, v2}, Les/mg;->a(Landroid/content/Context;Lcom/estrongs/fs/g;Les/mg$n;)Landroid/graphics/drawable/Drawable;

    move-result-object p2

    if-eqz p2, :cond_15

    .line 80
    iget-object p1, p1, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;->b:Landroid/widget/ImageView;

    check-cast p1, Lcom/estrongs/android/pop/esclasses/ESImageView;

    const/high16 v0, 0x3f000000    # 0.5f

    invoke-virtual {p1, p2, v0}, Lcom/estrongs/android/pop/esclasses/ESImageView;->b(Landroid/graphics/drawable/Drawable;F)V

    :cond_15
    return-void
.end method
